package com.zzptc.zzsgz.bdsjws.fragments;



import com.zzptc.zzsgz.bdsjws.R;
import com.zzptc.zzsgz.bdsjws.activities.OneKeySOSActivity;
import com.zzptc.zzsgz.bdsjws.fragments.base.BaseFragmentbase;
import butterknife.OnClick;
import butterknife.Unbinder;

public class FirstFraqment extends BaseFragmentbase {
    Unbinder unbinder;

    @Override
    public int getXML() {
        return R.layout.first_fragment;
    }

    @Override
    public void initView() {

    }

    @Override
    public void initDate() {

    }


    @Override
    public void onDestroyView() {
        super.onDestroyView();
        unbinder.unbind();
    }

    @OnClick(R.id.btn_sos)
    public void onViewClicked() {
//        getFragmentManager().beginTransaction().hide().add(R.id.fl_sos , new SecondFragment()).commit();
        //怎样获得宿主activity        宿主怎样管理fragment

        if (getActivity() instanceof OneKeySOSActivity){
            ((OneKeySOSActivity) getActivity()).toSecondFragment();
        }


    }
}
